package org.dromara.basedata.domain.bo;

import org.dromara.basedata.domain.FrameworkAgreement;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 框架协议维护业务对象 framework_agreement
 *
 * @author Lion Li
 * @date 2025-06-22
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = FrameworkAgreement.class, reverseConvertGenerate = false)
public class FrameworkAgreementBo extends BaseEntity {

    /**
     * 协议ID
     */
    @NotNull(message = "协议ID不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 协议名称
     */
    @NotBlank(message = "协议名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String agreementName;

    /**
     * 协议编号
     */
    @NotBlank(message = "协议编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String agreementNumber;

    /**
     * 签署时间
     */
    @NotNull(message = "签署时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date signingDate;

    /**
     * 截至时间
     */
    @NotNull(message = "截至时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date expirationDate;

    /**
     * 协议附件路径
     */
    private String agreementAttachment;


}
